﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using YouWei.Api.Common;
using YouWei.Api.Models;

namespace YouWei.Api
{
    /// <summary>
    /// 
    /// </summary>
    public class WordsConfig
    {
        /// <summary>
        /// 初始化
        /// </summary>
        public static void Init()
        {
            string basePath = HttpContext.Current.Server.MapPath("~");
            string[] words = System.IO.File.ReadAllLines(basePath + "\\words.txt");
            IllegalWordsSearch.Instance.SetKeywords(words);
        }
    }
}